﻿<%@ Page Title="单页面栏目内容编辑" Language="C#" MasterPageFile="Function.Master" AutoEventWireup="true" CodeBehind="SinglePageEdit.aspx.cs" Inherits="LEARNREN.COM.WebSite.Admin.SinglePageEdit" ValidateRequest="false" %>

<%@ Register Src="../UserDefinedControls/CatalogueTree.ascx" TagName="CatalogueTree" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../umeditor1_2_2-utf8-net/themes/default/css/umeditor.min.css" rel="stylesheet" type="text/css" />
    <script src="../umeditor1_2_2-utf8-net/umeditor.config.js" type="text/javascript"></script>
    <script src="../umeditor1_2_2-utf8-net/umeditor.min.js" type="text/javascript"></script>
    <script src="../umeditor1_2_2-utf8-net/lang/zh-cn/zh-cn.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(
            function () { initEditor(); }
        );

        function initEditor() {
            var um = UM.getEditor('<%=txtCatalogueContent.ClientID%>');
            um.setWidth("100%");
            um.setHeight("300");

            $(".edui-body-container").css("width", "");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form class="ui-widget" style="color: #222;" runat="server" defaultbutton="SavePushButton">
    <table class="common_table">
        <tr>
            <td class="common_table_left">
                <fieldset class="changePassword"><legend>栏目列表</legend>
                    <uc1:CatalogueTree ID="CatalogueTree1" runat="server" OnSelectedNodeChanged="CatalogueTree1_SelectedNodeChanged" />
                </fieldset>
            </td>
            <td>
                <fieldset class="changePassword"><legend>栏目内容编辑</legend>
                    <p>
                        <asp:HiddenField ID="txtId" runat="server" />
                        <asp:Label ID="CatalogueTitleLabel" runat="server" AssociatedControlID="txtCatalogueTitle">标题:</asp:Label>
                        <asp:TextBox ID="txtCatalogueTitle" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="txtCatalogueTitleRequired1" runat="server" ControlToValidate="txtCatalogueTitle" CssClass="failureNotification" ErrorMessage="必须填写“标题”。" ToolTip="必须填写“标题”。" ValidationGroup="BannerValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="LabelReDirectUrl" runat="server" AssociatedControlID="txtReDirectUrl">转向地址<span style=" color:Red;">（如转向到其他页面请勾选复选框）</span>:</asp:Label>
                        <asp:TextBox ID="txtReDirectUrl" runat="server" CssClass="textEntry"></asp:TextBox><span><asp:CheckBox runat="server" ID="ckbIsRedirect" /></span>
                        <asp:Label ID="msgLabel" runat="server" ForeColor="Red"></asp:Label>
                    </p>
                    <p>
                        <asp:Label ID="CatalogueContentLabel" runat="server" AssociatedControlID="txtCatalogueContent">栏目内容:</asp:Label>
                        <asp:TextBox ID="txtCatalogueContent" TextMode="MultiLine" runat="server"></asp:TextBox>
                    </p>
                    <p class="submitButton">
                        <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="取消" />
                        <asp:Button ID="SavePushButton" runat="server" CommandName="ChangePassword" Text="保存" ValidationGroup="BannerValidationGroup" OnClick="SavePushButton_Click" />
                    </p>
                </fieldset>
            </td>
        </tr>
    </table>
    </form>
</asp:Content>
